import request from '@/utils/request'
import qs from 'qs'
export function getstrategydata() {
    const url = '/strategy/strategydata'
    return request({
      url: url,
      method: 'get'
    })
}

export function deletestrategydata(id) {
    console.log(777);
    const url = '/strategy/delete'
    return request({
      url: url,
      method: 'post',
      data: qs.stringify({id}),
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded'
    }
    })
}

export function addestrategydata(data) {
  const url = '/strategy/write'
  return request({
    url: url,
    method: 'post',
    data: JSON.stringify(data),
    headers: {
      'Content-Type': 'application/json',
    },
  })
}
 